<script type="text/javascript" src="/library/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">

    $(document).ready(function() {

        tinyMCE.init({
	mode : "specific_textareas",
        editor_selector : "mceAdvanced",
	theme : "advanced",
	width : "400",
	height : "300",
	plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
	theme_advanced_toolbar_location : "top",
	theme_advanced_resizing : true,
	//Example content CSS (should be your site CSS)
	content_css : "css/example.css",
	template_external_list_url : "js/template_list.js",
	external_link_list_url : "js/link_list.js",
	external_image_list_url : "js/image_list.js",
	media_external_list_url : "js/media_list.js",
	// Replace values for the template plugin

	template_replace_values : {
	username : "Some User",
	staffid : "991234"

            }
        });

        $(function()
	{
            $(".dateAdmin").datepicker({ changeMonth: true,changeYear:true});
	});


    });
</script>   
<h2><a href="#">Publicidades</a> &raquo; <a href="#" class="active">Nuevo Publicidad</a></h2>
<div id="main">
    <fieldset>
        <form action="<?= $this->form->getAction() ?>" method="<?= $this->form->getMethod() ?>">
            <div class="formSeparator">
                <h3>Datos Comunes a todos los idiomas</h3>
            </div>
            <div class="subForm">
                <?= $this->form->getSubForm("common") ?>
            </div>
            <? foreach ($this->langs as $l): ?>
                    <div class="formSeparator">
                        <h3><img width="20" src="/upload/lang/<?= $l['image'] ?>"/> <?= $l['name'] ?></h3>
                    </div>
                    <div class="subForm">
                <?= $this->form->getSubForm($l['prefix2']) ?>
                </div>
            <? endforeach; ?>

            <?= $this->form->getElement("add") ?>
        </form>
    </fieldset>
</div>
<div class="clear"></div> 